import request from '@/utils/request'

//新增Washer
export function createWasher(data) {
    return request({
        url: `/adm/v1/washer`,
        method: 'post',
        data
    })
}

//删除Washer
export function deleteWasher(id) {
    return request({
        url: `/adm/v1/washer/${id}`,
        method: 'delete'
    })
}

//修改Washer
export function updateWasher(data) {
    return request({
        url: `/adm/v1/washer`,
        method: 'put',
        data
    })
}

//分页查询Washer
export function pageList(params) {
    return request({
        url: `/adm/v1/washer/page/list`,
        method: 'get',
        params
    })
}
